package com.lam.common.components.redis.config;

import java.time.Duration;
import java.util.HashMap;
import java.util.Map;

public abstract class RedisTtlConfig {
	
	protected Map<String, Duration> entryTtlConfig = new HashMap<>();
	
	public Map<String, Duration> getConfig(){
		return entryTtlConfig;
	}
	
	public void setTtl(String key, Duration duration) {
		entryTtlConfig.put(key, duration);
	}

}
